
def mis_cor_dic_generate():
    miss_spell_dir='./wikipedia_miss_spell.dat'
    file=open(miss_spell_dir,'r')
    mis_cor_dic={}
    lines=file.readlines()
    for line in lines:
        if line[0]=='$':
            cor_word=line[1:].strip().lower()
        else:
            mis_cor_dic[line.strip().lower()]=cor_word
    return mis_cor_dic
